<!--
 * @Author: lys
 * @Description: 
 * @Date: 2024-02-22 19:10:50
 * @LastEditors: lys
 * @LastEditTime: 2024-05-05 20:54:02
-->
<template>
  <div id="app">
    <a-config-provider :getPopupContainer="getPopupContainer" :locale="zh_CN">
      <transition name="fade-transform" mode="out-in">
        <router-view></router-view>
      </transition>
    </a-config-provider>
  </div>
</template>

<script>
import zh_CN from "ant-design-vue/lib/locale-provider/zh_CN";

export default {
  name: "App",
  data() {
    return {
      zh_CN,
    };
  },
  methods: {
    getPopupContainer(el, dialogContext) {
      if (dialogContext) {
        return dialogContext.getDialogWrap();
      } else {
        return document.body;
      }
    },
  },
};
</script>

<style>

/* @import "@/assets/css/base.scss"; */

.text-gray,
.line-gray,
.lines-gray {
    color: #aaaaaa;
}

#app {
  height: 100vh;
}
/* 
enter-active 定义进入过渡的结束状态
leave-active 定义离开过渡的结束状态
 */
.fade-transform-leave-active,
.fade-transform-enter-active {
  transition: all 0.3s;
}

/* 
enter定义进入过渡的开始状态
 */
.fade-transform-enter {
  opacity: 0;
  transform: translateX(-30px);
}
/* 
leave-to离场动画结束后的状态
 */
.fade-transform-leave-to {
  opacity: 0;
  transform: translateX(30px);
}

</style>
